package com.ruoyi.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单列表对象 orders
 *
 * @author ruoyi
 * @date 2024-12-07
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 买家id */
    @Excel(name = "买家id")
    private Long userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 地址 */
    @Excel(name = "地址")
    private String shippingAddress;

    /** 订单详情id */
    @Excel(name = "订单详情id")
    private Long ordersId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long type;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }
    public void setShippingAddress(String shippingAddress)
    {
        this.shippingAddress = shippingAddress;
    }

    public String getShippingAddress()
    {
        return shippingAddress;
    }
    public void setOrdersId(Long ordersId)
    {
        this.ordersId = ordersId;
    }

    public Long getOrdersId()
    {
        return ordersId;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("orderNumber", getOrderNumber())
                .append("totalPrice", getTotalPrice())
                .append("shippingAddress", getShippingAddress())
                .append("ordersId", getOrdersId())
                .append("remark", getRemark())
                .append("type", getType())
                .toString();
    }
}
